<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    var obj4 = {
        name:"obj4",
        fn:function () {
            console.log(this)
        }
    }
    var obj3 = {
        name:"obj3",
        fn:obj4.fn
    }
    var obj2 = Object.create(obj3)
    obj2.name = "obj2"
    var obj1 = Object.create(obj2)
    obj1.name = "obj1"

    obj1.fn()
</script>
</html>